package com.ricervcvcer.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ricervcvcer.goods.entity.TbSpecParam;
import com.ricervcvcer.goods.vo.SpecParamVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 规格参数组下的参数名 Mapper 接口
 * </p>
 *
 * @author moge
 * @since 2022-01-06
 */
public interface TbSpecParamMapper extends BaseMapper<TbSpecParam> {
    @Select("select * FROM tb_spec_param \n" +
            " \n" +
            " WHERE cid=#{cid}")
    List<SpecParamVO> selByCid(@Param("cid") Long cid);
}
